package com.lili.collection.core.serializer;

import com.alibaba.fastjson2.JSONWriter;
import com.alibaba.fastjson2.filter.PropertyPreFilter;

/**
 * @author lili
 * @description TODO
 * @date 2023/2/28 4:26
 */
public class FieldDefPropertyPreFilter implements PropertyPreFilter {

    @Override
    public boolean process(JSONWriter jsonWriter, Object instance, String name) {
        return GlobalConfigDefPropertyUtil.containsField(instance, name);
    }
}
